Einhugur macOS Bridge plugin.

NSButton.HasDestructiveAction Property

A Boolean value that defines whether a button’s action has a destructive effect.

HasDestructiveAction as Boolean {Read and Write}

Remarks

The default value of hasDestructiveAction is false. Setting this to true allows the system to guard a destructive-action button against accidental presses, and can give the button a special appearance in certain contexts to caution against unintentional use.



This property does nothing if the button is not on NSAlert window.

This property did not exists before macOS 11 and will do nothing on older systems

See Also

NSButton Class